﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchNoticeList.aspx.cs" Inherits="SchoolNoticeManagement_SearchNoticeList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>修改公告信息</title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
  <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
     <script type="text/javascript" language="javascript">
       function swithTab(liId) {
           $("#tabList").find("li").each(function() { $(this).removeClass(); });
           $("#" + liId).addClass("hover");
       }
       </script>
</head>
<body>
   <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
               查看公告信息</div>
        </div>

             <br class="sp3px" />
               <webdiyer:AspNetPager ID="pager" runat="server" 
                onpagechanged="pager_PageChanged" PageSize="10" CssClass="anpager" CurrentPageButtonClass="cpb">
            </webdiyer:AspNetPager>
          </div>
          <table>
          <tr>
          <td>
          <tr>
          <td>
          <div id="ht"><ul id="tabList">
     <li class="hover"  id="tab1"><a href="?IsPublished=1" >已发布</a></li>    
     <li  id="tab2"><a href="?IsPublished=0" >待审核</a></li>	</ul></div>
          </td>
             
   </tr>
          <td colspan="2">
              <asp:Panel ID="Panel1" runat="server" Width="1024px">
              
               <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">操作</td>
    <td  class="noWrapTD">公告标题</td>
    <td  class="noWrapTD" style="width:200px">公告内容</td>
    <td  class="noWrapTD" >公告状态</td>
    <td  class="noWrapTD">创建时间</td>
    
    </tr>  
    <asp:Repeater ID="repNews" runat="server" 
                onitemdatabound="repNews_ItemDataBound" 
                onitemcommand="repNews_ItemCommand">
           <ItemTemplate>
            <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
           <td class="ta2">
           <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton>
           <asp:LinkButton CssClass="button2" ID="btnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="btnDelete_Command" OnClientClick='return confirm("确定要删除么？")' Text="删除"></asp:LinkButton>
           <asp:LinkButton CssClass="button2" ID="btnIsPublished" runat="server" CommandArgument='<%# Eval("ID")+"|"+Eval("IsPublished")%>'  CommandName="SetIsPublished" Text="待审核"></asp:LinkButton>
           </td>
           <td class="ta2"><%#Eval("AnnouncementTitle")%>&nbsp;</td>
           <td class="ta2" onmouseover="this.title = this.innerText" >
             <div  style="overflow: hidden; width: 180px; white-space: nowrap; text-overflow: ellipsis;">
               <asp:Label ID="lblAnnouncementContent" runat="server"></asp:Label>
             </div></td>
           <td class="ta2"><%#Eval("IsPublished").ToString() == "1" ? "发布" : "禁用"%></td>
           <td class="ta2"><%#Eval("CreatedTime")%>&nbsp;</td>   
           </tr>
            </ItemTemplate>
            </asp:Repeater>
             </table>
              </asp:Panel>
          </td>
          </table>
            <tr>
    <td align="left" >
        <asp:Button ID="btnAddNotic" runat="server" Text="添加公告" class="button" 
        onclick="btnAddNotic_Click" /></td>
    </tr>
    </form>
</body>
</html>
